<div class="row-fluid">

    <div class="span12">

        <div class="box">

            <div class="title">

                <h4>
                    <span class="icon16 brocco-icon-grid"></span>
                    <span>Tạo mới Phòng ban</span>
                </h4>
                <a href="#" class="minimize">Thu nhỏ</a>
            </div>
            <div class="content">
                <form method="POST" action="<?php echo url_for('@gov_organization_edit?id='.$gov_organization_id)?>" class="frmWrapper">
                    <table>
                        <tr>
                            <th><?php echo $form['name']->renderLabel(null, array("class"=>"form-label"));  ?></th>
                            <td><?php echo $form['name']->render(array("id" => "name", "class" => "text" ));  ?></td>
                        </tr>
                        <tr>
                            <th><?php echo $form['description']->renderLabel(null, array("class"=>"form-label"));  ?></th>
                            <td><?php echo $form['description']->render(array("id" => "description", "class" => "text" ));  ?></td>
                        </tr>
                        <tr>
                            <th><?php echo $form['parent_id']->renderLabel(null, array("class"=>"form-label"));  ?></th>
                            <td><?php echo $form['parent_id']->render(array("id" => "parent_id"));  ?></td>
                        </tr>
                        <tr>
                            <th><?php echo $form['is_active']->renderLabel(null, array("class"=>"form-label"));  ?></th>
                            <td><?php echo $form['is_active']->render(array("id" => "is_active", "class" => "text" ));  ?></td>
                        </tr>
                    </table>
                    <div style="text-align:center">
                        <button type="submit" class="btn btn-info marginR10"><?php echo 'Lưu' ?></button>
                    </div>
                </form>
            </div>

        </div><!-- End .box -->

    </div><!-- End .span12 -->

</div><!-- End .row-fluid -->
<script>
    $(document).ready(function() {
        $(".frmWrapper").validate({
            rules: {
                "gov_organization[name]": "required"
            },
            messages: {
                "gov_organization[name]": '<?php echo "Tên của phòng ban là bắt buộc" ?>'
            }
        });
    });
</script>
